<?php
namespace Modules\Admin\Controllers;

class ConfigController extends \Phalcon\Mvc\Controller {
  public function indexAction() {
    return $this -> response -> setJsonContent(['code' => 0, 'config' => [
      'user_level' => [
        1 => '会员',
        2 => '经理',
        3 => '高级经理',
        4 => '总监',
        5 => '高级总监',
        6 => '董事'
      ],
      'user_shop_level' => [
        1 => '业务',
        2 => '代理',
        3 => '店代理'
      ],
      'user_status' => [
        0 => '正常',
        1 => '待激活',
        2 => '冻结'
      ],
      'user_wallet_fields' => [
        1 => '货',
        2 => '报单币',
        3 => '旅游积分',
        4 => '购物券',
        5 => '激活码'
      ],
      'user_wallet_common_log_type' => [
        11 => '充值', 12 => '提现',
        21 => '买入', 22 => '卖出',
        31 => '转入', 32 => '转出',
        5 => '使用',
        51 => '注册用户', 52 => '重复消费'
      ],
      'user_wallet_goods_log_type' => [
        11 => '充值', 12 => '提现',
        21 => '买入', 22 => '卖出',
        31 => '转入', 32 => '转出',
        5 => '使用',
        51 => '注册用户', 52 => '重复消费',
        //8 => '奖', 
        82 => '层碰奖', 83 => '对碰奖', 84 => '见点奖', 85 => '分红奖', 86 => '店代理奖', 87 => '重消奖'
      ],
      'user_wallet_common_log_active' => [
        '-',
        '+'
      ],
      'user_wallet_common_log_is_draw' => [
        '否',
        '是'
      ]
    ]]);
  }
}
